package com.zhou.gc.test2.test;

import com.zhou.mvc.ResponseBody;
import com.zhou.mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UserController {
    @ResponseBody("/testLogin.do")
    public String login(HttpServletRequest req, HttpServletResponse resp) {

        return "login success";

    }
    @ResponseView("/reg.do")
    public String reg(HttpServletRequest req, HttpServletResponse resp){
        return "success.jsp";
    }
}
